Skip to content

Expose interpolation method to users #173

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

ph-kev
Copy link
Member

@ph-kev ph-kev commented Jul 17, 2025

This PR exposes the interpolation method to the users, so that they can change from Intp.Linear() to Intp.Constant() for example.

TODO

  • Update documentation
  • Make tests for interpolation method

@ph-kev ph-kev force-pushed the kp/more-interpolate branch 6 times, most recently from ea99bcc to d627b0d Compare July 18, 2025 16:56
@ph-kev ph-kev changed the title [WIP] Expose interpolation method to users Expose interpolation method to users Jul 18, 2025
@ph-kev ph-kev requested a review from imreddyTeja July 18, 2025 16:56
NEWS.md Outdated
Comment on lines 10 to 11
`interpolation_method` for choosing which kind of interpolation to do. The
default is `Interpolations.Linear()`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be something more along the lines of:

Suggested change
`interpolation_method` for choosing which kind of interpolation to do. The
default is `Interpolations.Linear()`.
`interpolation_method` for choosing the mode of the gridded interpolation. The
default is `Interpolations.Linear()`.

I think it should be clear that this sets the mode of the gridded interpolation.

@@ -21,6 +22,9 @@ struct InterpolationsRegridder{
"""ClimaCore.Field of physical coordinates over which the data will be interpolated"""
coordinates::FIELD

"""Method of interpolation as accepted by Interpolations.jl"""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should somehow specify this is passed into gridded

@ph-kev ph-kev force-pushed the kp/more-interpolate branch from d627b0d to 8b2fe9f Compare July 18, 2025 18:33
@ph-kev ph-kev requested a review from imreddyTeja July 18, 2025 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants